home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 681 < prev    next >
Encoding:
Text File  |  1996-08-06  |  2.0 KB  |  63 lines

  1. Path: malgudi.oar.net!infinet!bgardner
  2. From: bgardner@infinet.com (Brian W. Gardner)
  3. Newsgroups: comp.lang.c++
  4. Subject: [Q] on linking error
  5. Date: 5 Jan 1996 19:58:07 GMT
  6. Organization: InfiNet
  7. Message-ID: <4cjvsf$r51@horus.infinet.com>
  8. NNTP-Posting-Host: rigel.infinet.com
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. [ Article crossposted from comp.unix.programmer ]
  12. [ Author was Brian W. Gardner ]
  13. [ Posted on 5 Jan 1996 19:56:51 GMT ]
  14.  
  15. I am having a problem with linking code that uses a third party library
  16. (Rogue Wave dbtools.h++). I get a linking error as follows:
  17.  
  18. collect2: ld returned 1 exit status
  19. /bin/ld: Unsatisfied symbols:
  20.    __builtin_va_start (code)
  21. gmake: *** [bin/testrw] Error 1
  22.  
  23. My environment is as follows:
  24.   OS       = HP-UX 9.0.4
  25.   compiler = g++ 2.7.2
  26.   linker   = HP linker (OS supplied)
  27.  
  28. The symbol __builtin_va_start appears in /usr/include/varargs.h, but I am
  29. unable to determine where a vararg call is being made, or what library
  30. I might include to resolve the call.
  31.  
  32. /* from varargs.h ****************************/
  33. #ifdef __cplusplus
  34.   extern "C" {
  35.     void __builtin_va_start(va_list, ...);
  36.     }
  37. #define va_start(__list,__parmN) (__list=0,__builtin_va_start(__list,&__parmN))
  38. #else /* not __cplusplus */
  39. #define va_start(__list,__parmN) __builtin_va_start (__list, &__parmN)
  40. #endif /* __cplusplus */
  41.  
  42. As an aside, we have had tremendous difficulty with the HP linker as 
  43. opposed to other OSs (we port to about 8 flavors of UNIX). Are there 
  44. any alternatives for this?
  45.  
  46. If anyone has any ideas, please let me know by posting to this group, 
  47. or (more reliably) email at the address(es) below.
  48.  
  49. Thanks!
  50.  
  51.  
  52. --
  53. Brian W. Gardner                       "Captain, I protest; I am not a
  54. 495 Park Blvd.                          merry man!" - Lt. Worf
  55. Worthington, OH 43085
  56. bgardner@infinet.com (home)            bgardner@hublink.com (office)
  57.  
  58. --
  59. Brian W. Gardner                       "Captain, I protest; I am not a
  60. 495 Park Blvd.                          merry man!" - Lt. Worf
  61. Worthington, OH 43085
  62. bgardner@infinet.com (home)            bgardner@hublink.com (office)
  63.